<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>

<script>
test(function(t) {
    var canvas = document.createElement('canvas');
    canvas.width = 0;
    canvas.height = 0;
    var context = canvas.getContext('2d');
    if (context.imageSmoothingEnabled)
        context.imageSmoothingEnabled = false;

}, 'Test that canvas.imageSmoothingEnabled does not crash when the size of the canvas is (0,0).');
</script>
